package cn.infinite.security.core;

import cn.infinite.security.error.SignatureValidateException;

import javax.management.OperationsException;
import java.util.function.BiPredicate;

/**
 * 签名验证器
 *
 * @param <T> 一般情况下为 需要验签的请求 或 数据
 * @param <R> 签名验证策略
 */
public interface SignatureValidator<T, R>{

    Boolean validate(T t, R r) throws SignatureValidateException;
}
